<?php

require "../../vendor/autoload.php";

$entry = isset($_GET['entry']) ? $_GET['entry'] : "";
if($entry){
  $entry = explode("/",$entry);
  $module = isset($entry[0]) ? $entry[0] : "admin-api";
  $controller = isset($entry[1]) ? $entry[1] : "index";
  $method = isset($entry[2]) ? $entry[2] : "index";
  $method = $_SERVER['REQUEST_METHOD'];
  $uri = $_SERVER['REQUEST_URI'];
//  if($method === 'POST'){
//
//  }
//  if($method === 'GET' && $uri === '/'){
//
//  }
  header("content-type: application/json;charset=UTF-8;");
  echo json_encode(['code'=>1,'msg'=>'ok','data'=>[]]);
  die;
}

echo file_get_contents("./index.html");

?>